package com.deep.deepenterpise.common.enums;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrStateEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrStateEnum {
    NO(0),
    YES(1),
    ;

    private final Integer drState;

    DrStateEnum(Integer drState) {
        this.drState = drState;
    }


    public boolean compare(Integer drState) {
        return this.drState.equals(drState);
    }

    public boolean compare(DrStateEnum drStateEnum) {
        return this.compare(drStateEnum.getDrState());
    }
}
